//
//  ViewController.h
//  myhuibao
//
//  Created by lijun on 13-2-4.
//  Copyright (c) 2013年 myhuibao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LeveyPopListView.h"
#import "ASIHTTPRequest.h"
#import "ASIFormDataRequest.h"

@class RequestLoadingView;

@interface RestaurantViewController : UIViewController<LeveyPopListViewDelegate,UITextFieldDelegate>{
    int selectIndex;
    int cityId;
    int areaId;
    int cuisineId;
    int discountId;
    int reviewId;
    int avgConsumeID;
    int typeId;
    NSMutableArray *arrayCity;
    NSMutableArray *arrayArea;
    NSMutableArray *arrayCuisine;
    NSMutableArray *arrayDiscount;
    NSMutableArray *arrayConsume;
    NSMutableArray *arrayDistrict;
    NSMutableArray *arrayCuisineType;
    bool isCityFinished;
    bool isAreaFinished;
    bool isCuisineFinished;
    bool isConsumeFinished;
    int _selectedIndex,_selectedIndex1,_selectedIndex2,_selectedIndex3;
    int _selectedTypeIndex,_selectedTypeIndex1;
//    IBOutlet UIView *mainView;
    
    RequestLoadingView *loadingView;
}
@property (strong, nonatomic) IBOutlet UIView *mainView;
@property (strong, nonatomic) IBOutlet UIView *searchView;
@property (strong, nonatomic) IBOutlet UITextField *edtCity;
- (IBAction)showSearch:(id)sender;
@property (strong, nonatomic) IBOutlet UITextField *edtArea;
@property (strong, nonatomic) IBOutlet UITextField *edtKeyword;
@property (strong, nonatomic) IBOutlet UITextField *edtCuisine;
@property (strong, nonatomic) IBOutlet UITextField *edtDiscount;
@property (strong, nonatomic) IBOutlet UITextField *edtReiview;
@property (strong, nonatomic) IBOutlet UIButton *btnBack;
@property (strong, nonatomic) IBOutlet UIView *ViewArea;
@property (strong, nonatomic) IBOutlet UIView *ViewCuisine;
@property (strong, nonatomic) IBOutlet UIView *ViewDiscount;
@property (strong, nonatomic) IBOutlet UIView *ViewConsume;
@property (strong, nonatomic) IBOutlet UIView *ViewType;
@property (strong, nonatomic) IBOutlet UITextField *edtType;
- (IBAction)OnClickType:(id)sender;

- (IBAction)showCity:(id)sender;
- (IBAction)showArea:(id)sender;
- (IBAction)showCuisine:(id)sender;
- (IBAction)showDiscount:(id)sender;
- (IBAction)showReivew:(id)sender;
@property (assign) int showback;
@property (assign,nonatomic) int cityId;
@property (unsafe_unretained) ASIHTTPRequest *reqCity;
@property (unsafe_unretained) ASIHTTPRequest *reqArea;
@property (unsafe_unretained) ASIHTTPRequest *reqCuisine;
@property (unsafe_unretained) ASIHTTPRequest *reqConsume;
- (IBAction)doBack:(id)sender;
@property (strong, nonatomic) IBOutlet UILabel *lbGap;

//@property (strong, nonatomic) NSArray *options;
//@property (strong, nonatomic) NSArray *areas;
//- (IBAction)showArea:(id)sender;


@end